"""Sema - the Composure semantic IO system using Gecko and GTK+"""

import gtkmozembed
import vm

class Sema(vm.IOSystem):
	"A semantic IO system"
	def __init__(self, window):
		vm.IOSystem.__init__(self)
		self.window = window

		#	Create the gecko instance
		self.gecko = gtkmozembed.MozEmbed()

	def enable(self, rock = 0):
		vm.IOSystem.enable(self)
		self.window.add(self.gecko)
		self.gecko.load_url('http://www.eblong.com/zarf/glulx/')
		self.gecko.show()
